/* =====================================================
   PHƯỚC THÀNH - Premium Agricultural Website
   Design System & Styles
   ===================================================== */

/* CSS Variables - Design Tokens */
:root {
    /* Color Palette - Natural & Premium */
    --color-primary: #2D5016;
    /* Deep Forest Green */
    --color-primary-light: #4A7C23;
    /* Leaf Green */
    --color-primary-dark: #1A3009;
    /* Dark Green */

    --color-secondary: #C4A35A;
    /* Golden Rice */
    --color-secondary-light: #E5D4A1;
    /* Light Gold */
    --color-secondary-dark: #9A7B35;
    /* Bronze */

    --color-accent: #D4AF37;
    /* Premium Gold */

    /* Neutrals */
    --color-bg: #FDFBF7;
    /* Warm White */
    --color-bg-alt: #F5F2EB;
    /* Cream */
    --color-surface: #FFFFFF;
    --color-text: #1A1A1A;
    --color-text-light: #666666;
    --color-text-muted: #999999;
    --color-border: #E5E2DB;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    --gradient-gold: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    --gradient-hero: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Container */
    --container-max: 1280px;
    --container-padding: 1.5rem;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
}

.text-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--color-primary);
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: var(--space-sm) 0;
}

.header.scrolled .nav-link {
    color: var(--color-text);
}

.header.scrolled .logo-text {
    color: var(--color-primary);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.05em;
    transition: color var(--transition-base);
}

/* Logo Images */
.logo-header-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-base);
}

.header.scrolled .logo-header-img {
    height: 50px;
}

.footer .logo-full-img {
    height: 200px;
    width: auto;
    object-fit: contain;
    margin-bottom: var(--space-md);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    transition: all var(--transition-base);
}

.header.scrolled .nav-toggle span {
    background: var(--color-text);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-badge {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: var(--space-2xl);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.scroll-icon {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-full);
    position: relative;
}

.scroll-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: white;
    border-radius: var(--radius-full);
    transform: translateX(-50%);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(8px);
        opacity: 0.3;
    }
}

/* Animations */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   STATS SECTION
   ===================================================== */
.stats {
    background: var(--gradient-primary);
    /* Keep background */
    padding: var(--space-xl) 0;
    margin-top: -1px;
}

.partners-grid {
    display: flex;
    justify-content: center;
    /* Center them */
    align-items: center;
    flex-wrap: wrap;
    /* Wrap if screen small */
    gap: var(--space-2xl);
    /* More space */
    padding-top: var(--space-lg);
}

.partner-item {
    /* No fixed width box, no background */
    padding: var(--space-md);
    transition: all var(--transition-base);
}

.partner-item:hover {
    transform: translateY(-2px);
    /* No background change on hover */
}

.partner-item img {
    height: 120px;
    /* Increased height */
    width: auto;
    object-fit: contain;
    /* Removed filter: brightness(0) invert(1) */
    opacity: 1;
    /* Full visibility */
    transition: all var(--transition-base);
}

.partner-item:hover img {
    transform: scale(1.1);
}


/* =====================================================
   SECTIONS - Common Styles
   ===================================================== */
.section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

.section-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--color-secondary-light);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--color-text-light);
}

/* =====================================================
   PRODUCTS SECTION
   ===================================================== */
.products {
    background: var(--color-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.product-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    /* aspect-ratio: 4/3; Bỏ ratio cứng để theo ảnh hoặc dùng ratio chữ nhật */
    aspect-ratio: 16/9;
    overflow: hidden;
    background: transparent;
    /* Bỏ background màu */
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Hoặc cover nếu muốn fill */
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.product-badge.premium {
    background: var(--gradient-gold);
    color: var(--color-text);
}

.product-content {
    padding: var(--space-lg);
}

.product-name {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
    font-family: var(--font-heading);
}

.product-desc {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.product-specs span {
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-bg-alt);
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
    color: var(--color-text-light);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.product-price {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-primary);
}

.products-cta {
    text-align: center;
    margin-top: var(--space-3xl);
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about {
    background: var(--color-bg-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-content .section-badge {
    margin-bottom: var(--space-md);
}

.about-content .section-title {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.about-text {
    font-size: 1.0625rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.about-text strong {
    color: var(--color-primary);
}

.about-text em {
    color: var(--color-secondary-dark);
    font-style: normal;
    font-weight: 500;
}

.about-values {
    margin-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.value-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.value-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 700;
    flex-shrink: 0;
}

.value-item h4 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
    font-family: var(--font-body);
}

.value-item p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gradient-gold);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-badge-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    color: var(--color-text);
}

.about-badge-text {
    font-size: 0.875rem;
    color: var(--color-text);
    line-height: 1.3;
}

/* =====================================================
   WHY US SECTION
   ===================================================== */
.why-us {
    background: var(--color-surface);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.why-card {
    padding: var(--space-2xl);
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.why-card:hover {
    background: var(--color-surface);
    border-color: var(--color-secondary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.why-icon {
    display: none !important;
}

/* Gold Gradient & Hero Styles */
.text-gradient-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FDB931 50%, #C49200 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #FDB931;
}

.hero-brand-small {
    display: block;
    font-size: 0.5em;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Gold Gradient & Hero Styles */
.text-gradient-gold {
    /* Bright Gold Gradient: Yellow/White/Gold */
    background: linear-gradient(135deg, #FFD700 0%, #FFFFFF 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #FFD700;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.hero-brand-small {
    display: block;
    font-size: 0.5em;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 500;
}

.hero-brand-large {
    font-size: 1.5em;
    line-height: 1.1;
    display: block;
}

/* =====================================================
   PRODUCT MODAL
   ===================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    /* Darker background */
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    max-width: 1100px;
    /* Wider modal */
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform var(--transition-base);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-text);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 20;
    border: none;
    line-height: 1;
}

.modal-close:hover {
    background: var(--color-primary);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 60% 40%;
    /* Horizontal layout: Image wider */
    gap: 0;
    min-height: 500px;
}

.modal-image {
    background: #f8f9fa;
    /* Light grey bg */
    padding: 0;
    /* Remove padding to fit image */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fill the area */
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

.modal-info {
    padding: var(--space-3xl) var(--space-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}



.why-card p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* =====================================================
   FACTORY SECTION
   ===================================================== */
.factory {
    background: var(--color-bg-alt);
}

.factory-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-lg);
}

.factory-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
}

.factory-card.main {
    grid-row: span 2;
    aspect-ratio: auto;
}

.factory-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.factory-card:hover img {
    transform: scale(1.05);
}

.factory-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.factory-overlay h3 {
    font-size: 1.25rem;
    color: white;
    margin-bottom: var(--space-xs);
}

.factory-overlay p {
    font-size: 0.9375rem;
    opacity: 0.9;
}

.factory-overlay ul {
    margin-top: var(--space-md);
}

.factory-overlay li {
    font-size: 0.875rem;
    opacity: 0.85;
    padding: var(--space-xs) 0;
    padding-left: var(--space-md);
    position: relative;
}

.factory-overlay li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.factory-features {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-surface);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    font-size: 1.5rem;
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact {
    background: var(--color-primary-dark);
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: start;
}

.contact-info .section-badge {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-secondary-light);
}

.contact-info .section-title {
    color: white;
    text-align: left;
    margin-bottom: var(--space-lg);
}

.contact-desc {
    font-size: 1.0625rem;
    opacity: 0.9;
    margin-bottom: var(--space-2xl);
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
}

.contact-icon {
    font-size: 1.5rem;
    width: 40px;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.7;
    margin-bottom: var(--space-xs);
}

.contact-value {
    font-size: 1rem;
    color: white;
    display: block;
}

a.contact-value:hover {
    color: var(--color-accent);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--color-surface);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xl);
    color: var(--color-text);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-4xl) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-brand .logo-text {
    color: white;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-primary);
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: var(--space-lg);
    font-family: var(--font-body);
    font-weight: 600;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    font-size: 0.9375rem;
    opacity: 0.8;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer-contact p {
    font-size: 0.9375rem;
    margin-bottom: var(--space-sm);
    opacity: 0.8;
}

.footer-bottom {
    padding: var(--space-lg) 0;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.6;
}

/* =====================================================
   BACK TO TOP BUTTON
   ===================================================== */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary-light);
    transform: translateY(-4px);
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2xl);
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about-image {
        order: -1;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .factory-grid {
        grid-template-columns: 1fr;
    }

    .factory-card.main {
        grid-row: auto;
        aspect-ratio: 16/10;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-surface);
        flex-direction: column;
        padding: var(--space-4xl) var(--space-xl);
        gap: var(--space-lg);
        box-shadow: var(--shadow-2xl);
        transition: right var(--transition-base);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-link {
        color: var(--color-text);
        font-size: 1.125rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-actions .btn {
        display: none;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .factory-features {
        gap: var(--space-md);
    }

    .feature {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.875rem;
    }

    .about-badge {
        right: var(--space-md);
        bottom: -10px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: var(--space-3xl) 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .stats-grid {
        gap: var(--space-lg);
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* =====================================================
   PRODUCT MODAL
   ===================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-2xl);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--color-bg-alt);
    color: var(--color-text);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
    border: none;
}

.modal-close:hover {
    background: var(--color-primary);
    color: white;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-image {
    background: var(--color-bg-alt);
    padding: var(--space-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.modal-info {
    padding: var(--space-2xl);
}

.modal-info h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.modal-desc {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.modal-specs {
    background: var(--color-bg-alt);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.modal-specs h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    font-family: var(--font-body);
}

.modal-specs ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.modal-specs li {
    background: var(--color-surface);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    color: var(--color-text);
}

.modal-pricing {
    margin-bottom: var(--space-xl);
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.price-row .label {
    color: var(--color-text-light);
}

.price-row .price {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.125rem;
}

.price-row .min {
    font-weight: 500;
    color: var(--color-secondary-dark);
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.btn-outline-dark {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border);
    text-align: center;
}

.btn-outline-dark:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-view {
    background: var(--color-primary);
    color: white;
}

.btn-view:hover {
    background: var(--color-primary-light);
}

.product-card {
    cursor: pointer;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image {
        padding: var(--space-lg);
    }

    .modal-image img {
        max-height: 250px;
    }

    .modal-info {
        padding: var(--space-lg);
    }

    .modal-info h2 {
        font-size: 1.5rem;
    }
}

/* =====================================================
   LOCATIONS SECTION
   ===================================================== */
.locations-section {
    background-color: #f8f9fa;
    padding: var(--space-3xl) 0;
}

.location-block {
    margin-bottom: var(--space-2xl);
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.location-block:last-child {
    margin-bottom: 0;
}

.location-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-lg);
    gap: var(--space-md);
    border-bottom: 2px solid var(--color-primary-light);
    padding-bottom: var(--space-md);
}

.location-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin: 0;
}

.location-icon {
    font-size: 2rem;
}

.location-gallery {
    display: grid;
    gap: var(--space-md);
}

/* Specific grids based on image count */
.gallery-2 {
    grid-template-columns: 1.5fr 1fr;
    /* Asymetric for interest */
}

@media (max-width: 768px) {
    .gallery-2 {
        grid-template-columns: 1fr;
    }
}

.gallery-1 {
    grid-template-columns: 1fr;
}

.location-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform var(--transition-base);
}

.location-img:hover {
    transform: scale(1.02);
}

.gallery-1 .location-img {
    height: 500px;
    /* Taller for single image */
}